'use strict';

var app = angular.module('ProduceWork');

app.service('ProduceWorkEnum', [function(){
    return {
        //入库业务类型
        RcvBusinessType: {
            Complete: {Value: 0, Text: '生产完工'},
            ConnectArea: {Value: 1, Text: '交接区入库'},
            PORcv: {Value: 2, Text: '采购收货'}
        },
        //配送模式
        DeliveryMode: {
            Car: {Value: 0, Text: '物流小车'},
            Person: {Value: 1, Text: '人工'}
        },
        //推拉模式
        PushPullMode: {
            Push: {Value: 0, Text: '推式'},
            Pull: {Value: 1, Text: '拉式'}
        },
        //完工计划状态
        CompletePlanStatus: {
            Start: {Value: 0, Text: '开工'},
            Online: {Value: 1, Text: '完工'}
        },
        CreateErpDocType:{
            Rcv: {Value: 0, Text: '收货单'},
            SubContractRcv: {Value: 1, Text: '委外收货'},
            Ship: {Value: 2, Text: '出货单'},
            TransferOut: {Value: 3, Text: '调出'},
            TransferIn: {Value: 4, Text: '调入'},
            MisShip: {Value: 5, Text: '杂发'},
            MisRcv: {Value: 6, Text: '杂收'},
            CheckDiffBill: {Value: 7, Text: '盘点单'},
            IssueDoc: {Value: 8, Text: '领料单'},
            RcvRptDoc: {Value: 9, Text: '完工入库单'}
        }
    };
}]);